$(function () {
    removeShopCartItems();

    function removeShopCartItems() {
        var ids = LsySession.getItem('checkItems');
        if (!ids) {
            return false;
        }
        var option = {
            type: 'post',
            url: 'admin/paySuccess.php',
            data: {
                postType: 'removeItems',
                ids: ids
            }
        };
        requestEvent(option, function (res) {
            console.log(res);
            if (res && res.status == 1) {
                LsySession.removeItem('checkItems');
            }
        });

    }
});